# -*- coding: utf-8 -*-            
# @Time : 2024/9/18 13:11
# @FileName: 01.py
# @Target:
import json, codecs, time, os
from pprint import pprint


with codecs.open(filename='quality_translation.json', mode='r', encoding='utf-8') as fr:
    D = json.load(fr)
DICT = {}
for KEY, VALUE in D.items():
    zh, en, de = VALUE
    DICT.update({
        '@@'.join(zh) : ['@@'.join(en), ''.join(de)]
    })

with codecs.open(filename='quality_labels_translate.json', mode='w', encoding='utf-8') as fw:
    json.dump(obj=DICT, fp=fw, ensure_ascii=False, indent=4)






